#include "cvloadingwidget.h"
#include "ui_cvloadingwidget.h"

CVLoadingWidget::CVLoadingWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CVLoadingWidget)
{
    ui->setupUi(this);

    movie = new QMovie(":/images/loader");
    ui->loader->setMovie(movie);
}

CVLoadingWidget::~CVLoadingWidget()
{
    delete ui;
}

void CVLoadingWidget::start()
{
    movie->start();
}

void CVLoadingWidget::stop()
{
    movie->stop();
}
